
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pychess.widgets.BookCellRenderer</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="pychess.html"><font color="#ffffff">pychess</font></a>.<a href="pychess.widgets.html"><font color="#ffffff">widgets</font></a>.BookCellRenderer</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/thomas/Programmering/python/skak/svn/lib/pychess/widgets/BookCellRenderer.py">/home/thomas/Programmering/python/skak/svn/lib/pychess/widgets/BookCellRenderer.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gobject.html">gobject</a><br>
</td><td width="25%" valign=top><a href="gtk.html">gtk</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#file">__builtin__.file</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pychess.widgets.BookCellRenderer.html#Fileadapter">Fileadapter</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="gtk.html#GenericCellRenderer">gtk.GenericCellRenderer</a>(<a href="gtk.html#CellRenderer">gtk.CellRenderer</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pychess.widgets.BookCellRenderer.html#BookCellRenderer">BookCellRenderer</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="BookCellRenderer">class <strong>BookCellRenderer</strong></a>(<a href="gtk.html#GenericCellRenderer">gtk.GenericCellRenderer</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pychess.widgets.BookCellRenderer.html#BookCellRenderer">BookCellRenderer</a></dd>
<dd><a href="gtk.html#GenericCellRenderer">gtk.GenericCellRenderer</a></dd>
<dd><a href="gtk.html#CellRenderer">gtk.CellRenderer</a></dd>
<dd><a href="gtk.html#Object">gtk.Object</a></dd>
<dd><a href="gobject.html#GObject">gobject.GObject</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="BookCellRenderer-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="BookCellRenderer-do_get_property"><strong>do_get_property</strong></a>(self, pspec)</dt></dl>

<dl><dt><a name="BookCellRenderer-do_set_property"><strong>do_set_property</strong></a>(self, pspec, value)</dt></dl>

<dl><dt><a name="BookCellRenderer-on_get_size"><strong>on_get_size</strong></a>(self, widget, cell_area<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="BookCellRenderer-on_render"><strong>on_render</strong></a>(self, window, widget, background_area, cell_area, expose_area, flags)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__gtype__</strong> = &lt;GType pychess+widgets+BookCellRenderer+BookCellRenderer (164200320)&gt;</dl>

<hr>
Methods inherited from <a href="gtk.html#CellRenderer">gtk.CellRenderer</a>:<br>
<dl><dt><a name="BookCellRenderer-activate"><strong>activate</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-editing_canceled"><strong>editing_canceled</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-get_fixed_size"><strong>get_fixed_size</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-get_size"><strong>get_size</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-render"><strong>render</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-set_fixed_size"><strong>set_fixed_size</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-start_editing"><strong>start_editing</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-stop_editing"><strong>stop_editing</strong></a>(...)</dt></dl>

<hr>
Data and other attributes inherited from <a href="gtk.html#CellRenderer">gtk.CellRenderer</a>:<br>
<dl><dt><strong>do_activate</strong> = &lt;built-in method do_activate of GObjectMeta object&gt;</dl>

<dl><dt><strong>do_editing_canceled</strong> = &lt;built-in method do_editing_canceled of GObjectMeta object&gt;</dl>

<dl><dt><strong>do_editing_started</strong> = &lt;built-in method do_editing_started of GObjectMeta object&gt;</dl>

<dl><dt><strong>do_get_size</strong> = &lt;built-in method do_get_size of GObjectMeta object&gt;</dl>

<dl><dt><strong>do_render</strong> = &lt;built-in method do_render of GObjectMeta object&gt;</dl>

<dl><dt><strong>do_start_editing</strong> = &lt;built-in method do_start_editing of GObjectMeta object&gt;</dl>

<hr>
Methods inherited from <a href="gtk.html#Object">gtk.Object</a>:<br>
<dl><dt><a name="BookCellRenderer-destroy"><strong>destroy</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-flags"><strong>flags</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-remove_data"><strong>remove_data</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-remove_no_notify"><strong>remove_no_notify</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-set_flags"><strong>set_flags</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-unset_flags"><strong>unset_flags</strong></a>(...)</dt></dl>

<hr>
Data and other attributes inherited from <a href="gtk.html#Object">gtk.Object</a>:<br>
<dl><dt><strong>do_destroy</strong> = &lt;built-in method do_destroy of GObjectMeta object&gt;</dl>

<hr>
Methods inherited from <a href="gobject.html#GObject">gobject.GObject</a>:<br>
<dl><dt><a name="BookCellRenderer-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#BookCellRenderer-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>

<dl><dt><a name="BookCellRenderer-__gobject_init__"><strong>__gobject_init__</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#BookCellRenderer-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

<dl><dt><a name="BookCellRenderer-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BookCellRenderer-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="BookCellRenderer-chain"><strong>chain</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-connect"><strong>connect</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-connect_after"><strong>connect_after</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-connect_object"><strong>connect_object</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-connect_object_after"><strong>connect_object_after</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-disconnect"><strong>disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-disconnect_by_func"><strong>disconnect_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-emit"><strong>emit</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-emit_stop_by_name"><strong>emit_stop_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-freeze_notify"><strong>freeze_notify</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-get_data"><strong>get_data</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-get_property"><strong>get_property</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_block"><strong>handler_block</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_block_by_func"><strong>handler_block_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_disconnect"><strong>handler_disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_is_connected"><strong>handler_is_connected</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_unblock"><strong>handler_unblock</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-handler_unblock_by_func"><strong>handler_unblock_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-notify"><strong>notify</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-set_data"><strong>set_data</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-set_property"><strong>set_property</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-stop_emission"><strong>stop_emission</strong></a>(...)</dt></dl>

<dl><dt><a name="BookCellRenderer-thaw_notify"><strong>thaw_notify</strong></a>(...)</dt></dl>

<hr>
Data and other attributes inherited from <a href="gobject.html#GObject">gobject.GObject</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;</dl>

<dl><dt><strong>__gdoc__</strong> = 'Object pychess+widgets+BookCellRenderer+BookCell...-peger<font color="#c040c0">\n\n</font>Signals from GObject:<font color="#c040c0">\n</font>  notify (GParam)<font color="#c040c0">\n\n</font>'</dl>

<dl><dt><strong>__grefcount__</strong> = &lt;attribute '__grefcount__' of 'gobject.GObject' objects&gt;</dl>

<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of GObjectMeta object&gt;<dd><tt>T.<a href="#BookCellRenderer-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<dl><dt><strong>props</strong> = &lt;gobject.GProps object&gt;</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Fileadapter">class <strong>Fileadapter</strong></a>(<a href="__builtin__.html#file">__builtin__.file</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pychess.widgets.BookCellRenderer.html#Fileadapter">Fileadapter</a></dd>
<dd><a href="__builtin__.html#file">__builtin__.file</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Fileadapter-__init__"><strong>__init__</strong></a>(self, loader)</dt><dd><tt>#Doesn't&nbsp;work&nbsp;:(</tt></dd></dl>

<dl><dt><a name="Fileadapter-write"><strong>write</strong></a>(self, s)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Methods inherited from <a href="__builtin__.html#file">__builtin__.file</a>:<br>
<dl><dt><a name="Fileadapter-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="Fileadapter-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-__getattribute__">__getattribute__</a>('name')&nbsp;&lt;==&gt;&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="Fileadapter-__iter__"><strong>__iter__</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-__iter__">__iter__</a>()&nbsp;&lt;==&gt;&nbsp;iter(x)</tt></dd></dl>

<dl><dt><a name="Fileadapter-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="Fileadapter-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>

<dl><dt><a name="Fileadapter-close"><strong>close</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-close">close</a>()&nbsp;-&gt;&nbsp;None&nbsp;or&nbsp;(perhaps)&nbsp;an&nbsp;integer.&nbsp;&nbsp;Close&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>.<br>
&nbsp;<br>
Sets&nbsp;data&nbsp;attribute&nbsp;.closed&nbsp;to&nbsp;True.&nbsp;&nbsp;A&nbsp;closed&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;cannot&nbsp;be&nbsp;used&nbsp;for<br>
further&nbsp;I/O&nbsp;operations.&nbsp;&nbsp;<a href="#Fileadapter-close">close</a>()&nbsp;may&nbsp;be&nbsp;called&nbsp;more&nbsp;than&nbsp;once&nbsp;without<br>
error.&nbsp;&nbsp;Some&nbsp;kinds&nbsp;of&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;objects&nbsp;(for&nbsp;example,&nbsp;opened&nbsp;by&nbsp;popen())<br>
may&nbsp;return&nbsp;an&nbsp;exit&nbsp;status&nbsp;upon&nbsp;closing.</tt></dd></dl>

<dl><dt><a name="Fileadapter-fileno"><strong>fileno</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-fileno">fileno</a>()&nbsp;-&gt;&nbsp;integer&nbsp;"<a href="__builtin__.html#file">file</a>&nbsp;descriptor".<br>
&nbsp;<br>
This&nbsp;is&nbsp;needed&nbsp;for&nbsp;lower-level&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;interfaces,&nbsp;such&nbsp;os.<a href="#Fileadapter-read">read</a>().</tt></dd></dl>

<dl><dt><a name="Fileadapter-flush"><strong>flush</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-flush">flush</a>()&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Flush&nbsp;the&nbsp;internal&nbsp;I/O&nbsp;buffer.</tt></dd></dl>

<dl><dt><a name="Fileadapter-isatty"><strong>isatty</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-isatty">isatty</a>()&nbsp;-&gt;&nbsp;true&nbsp;or&nbsp;false.&nbsp;&nbsp;True&nbsp;if&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;is&nbsp;connected&nbsp;to&nbsp;a&nbsp;tty&nbsp;device.</tt></dd></dl>

<dl><dt><a name="Fileadapter-next"><strong>next</strong></a>(...)</dt><dd><tt>x.<a href="#Fileadapter-next">next</a>()&nbsp;-&gt;&nbsp;the&nbsp;next&nbsp;value,&nbsp;or&nbsp;raise&nbsp;StopIteration</tt></dd></dl>

<dl><dt><a name="Fileadapter-read"><strong>read</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-read">read</a>([size])&nbsp;-&gt;&nbsp;read&nbsp;at&nbsp;most&nbsp;size&nbsp;bytes,&nbsp;returned&nbsp;as&nbsp;a&nbsp;string.<br>
&nbsp;<br>
If&nbsp;the&nbsp;size&nbsp;argument&nbsp;is&nbsp;negative&nbsp;or&nbsp;omitted,&nbsp;read&nbsp;until&nbsp;EOF&nbsp;is&nbsp;reached.<br>
Notice&nbsp;that&nbsp;when&nbsp;in&nbsp;non-blocking&nbsp;mode,&nbsp;less&nbsp;data&nbsp;than&nbsp;what&nbsp;was&nbsp;requested<br>
may&nbsp;be&nbsp;returned,&nbsp;even&nbsp;if&nbsp;no&nbsp;size&nbsp;parameter&nbsp;was&nbsp;given.</tt></dd></dl>

<dl><dt><a name="Fileadapter-readinto"><strong>readinto</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-readinto">readinto</a>()&nbsp;-&gt;&nbsp;Undocumented.&nbsp;&nbsp;Don't&nbsp;use&nbsp;this;&nbsp;it&nbsp;may&nbsp;go&nbsp;away.</tt></dd></dl>

<dl><dt><a name="Fileadapter-readline"><strong>readline</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-readline">readline</a>([size])&nbsp;-&gt;&nbsp;next&nbsp;line&nbsp;from&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>,&nbsp;as&nbsp;a&nbsp;string.<br>
&nbsp;<br>
Retain&nbsp;newline.&nbsp;&nbsp;A&nbsp;non-negative&nbsp;size&nbsp;argument&nbsp;limits&nbsp;the&nbsp;maximum<br>
number&nbsp;of&nbsp;bytes&nbsp;to&nbsp;return&nbsp;(an&nbsp;incomplete&nbsp;line&nbsp;may&nbsp;be&nbsp;returned&nbsp;then).<br>
Return&nbsp;an&nbsp;empty&nbsp;string&nbsp;at&nbsp;EOF.</tt></dd></dl>

<dl><dt><a name="Fileadapter-readlines"><strong>readlines</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-readlines">readlines</a>([size])&nbsp;-&gt;&nbsp;list&nbsp;of&nbsp;strings,&nbsp;each&nbsp;a&nbsp;line&nbsp;from&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>.<br>
&nbsp;<br>
Call&nbsp;<a href="#Fileadapter-readline">readline</a>()&nbsp;repeatedly&nbsp;and&nbsp;return&nbsp;a&nbsp;list&nbsp;of&nbsp;the&nbsp;lines&nbsp;so&nbsp;read.<br>
The&nbsp;optional&nbsp;size&nbsp;argument,&nbsp;if&nbsp;given,&nbsp;is&nbsp;an&nbsp;approximate&nbsp;bound&nbsp;on&nbsp;the<br>
total&nbsp;number&nbsp;of&nbsp;bytes&nbsp;in&nbsp;the&nbsp;lines&nbsp;returned.</tt></dd></dl>

<dl><dt><a name="Fileadapter-seek"><strong>seek</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-seek">seek</a>(offset[,&nbsp;whence])&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Move&nbsp;to&nbsp;new&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;position.<br>
&nbsp;<br>
Argument&nbsp;offset&nbsp;is&nbsp;a&nbsp;byte&nbsp;count.&nbsp;&nbsp;Optional&nbsp;argument&nbsp;whence&nbsp;defaults&nbsp;to<br>
0&nbsp;(offset&nbsp;from&nbsp;start&nbsp;of&nbsp;<a href="__builtin__.html#file">file</a>,&nbsp;offset&nbsp;should&nbsp;be&nbsp;&gt;=&nbsp;0);&nbsp;other&nbsp;values&nbsp;are&nbsp;1<br>
(move&nbsp;relative&nbsp;to&nbsp;current&nbsp;position,&nbsp;positive&nbsp;or&nbsp;negative),&nbsp;and&nbsp;2&nbsp;(move<br>
relative&nbsp;to&nbsp;end&nbsp;of&nbsp;<a href="__builtin__.html#file">file</a>,&nbsp;usually&nbsp;negative,&nbsp;although&nbsp;many&nbsp;platforms&nbsp;allow<br>
seeking&nbsp;beyond&nbsp;the&nbsp;end&nbsp;of&nbsp;a&nbsp;<a href="__builtin__.html#file">file</a>).&nbsp;&nbsp;If&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;is&nbsp;opened&nbsp;in&nbsp;text&nbsp;mode,<br>
only&nbsp;offsets&nbsp;returned&nbsp;by&nbsp;<a href="#Fileadapter-tell">tell</a>()&nbsp;are&nbsp;legal.&nbsp;&nbsp;Use&nbsp;of&nbsp;other&nbsp;offsets&nbsp;causes<br>
undefined&nbsp;behavior.<br>
Note&nbsp;that&nbsp;not&nbsp;all&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;objects&nbsp;are&nbsp;seekable.</tt></dd></dl>

<dl><dt><a name="Fileadapter-tell"><strong>tell</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-tell">tell</a>()&nbsp;-&gt;&nbsp;current&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;position,&nbsp;an&nbsp;integer&nbsp;(may&nbsp;be&nbsp;a&nbsp;long&nbsp;integer).</tt></dd></dl>

<dl><dt><a name="Fileadapter-truncate"><strong>truncate</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-truncate">truncate</a>([size])&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Truncate&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;to&nbsp;at&nbsp;most&nbsp;size&nbsp;bytes.<br>
&nbsp;<br>
Size&nbsp;defaults&nbsp;to&nbsp;the&nbsp;current&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;position,&nbsp;as&nbsp;returned&nbsp;by&nbsp;<a href="#Fileadapter-tell">tell</a>().</tt></dd></dl>

<dl><dt><a name="Fileadapter-writelines"><strong>writelines</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-writelines">writelines</a>(sequence_of_strings)&nbsp;-&gt;&nbsp;None.&nbsp;&nbsp;Write&nbsp;the&nbsp;strings&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;newlines&nbsp;are&nbsp;not&nbsp;added.&nbsp;&nbsp;The&nbsp;sequence&nbsp;can&nbsp;be&nbsp;any&nbsp;iterable&nbsp;object<br>
producing&nbsp;strings.&nbsp;This&nbsp;is&nbsp;equivalent&nbsp;to&nbsp;calling&nbsp;<a href="#Fileadapter-write">write</a>()&nbsp;for&nbsp;each&nbsp;string.</tt></dd></dl>

<dl><dt><a name="Fileadapter-xreadlines"><strong>xreadlines</strong></a>(...)</dt><dd><tt><a href="#Fileadapter-xreadlines">xreadlines</a>()&nbsp;-&gt;&nbsp;returns&nbsp;self.<br>
&nbsp;<br>
For&nbsp;backward&nbsp;compatibility.&nbsp;File&nbsp;objects&nbsp;now&nbsp;include&nbsp;the&nbsp;performance<br>
optimizations&nbsp;previously&nbsp;implemented&nbsp;in&nbsp;the&nbsp;xreadlines&nbsp;module.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="__builtin__.html#file">__builtin__.file</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;<dd><tt>T.<a href="#Fileadapter-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<dl><dt><strong>closed</strong> = &lt;attribute 'closed' of 'file' objects&gt;<dd><tt>True&nbsp;if&nbsp;the&nbsp;<a href="__builtin__.html#file">file</a>&nbsp;is&nbsp;closed</tt></dl>

<dl><dt><strong>encoding</strong> = &lt;member 'encoding' of 'file' objects&gt;<dd><tt><a href="__builtin__.html#file">file</a>&nbsp;encoding</tt></dl>

<dl><dt><strong>mode</strong> = &lt;member 'mode' of 'file' objects&gt;<dd><tt><a href="__builtin__.html#file">file</a>&nbsp;mode&nbsp;('r',&nbsp;'U',&nbsp;'w',&nbsp;'a',&nbsp;possibly&nbsp;with&nbsp;'b'&nbsp;or&nbsp;'+'&nbsp;added)</tt></dl>

<dl><dt><strong>name</strong> = &lt;member 'name' of 'file' objects&gt;<dd><tt><a href="__builtin__.html#file">file</a>&nbsp;name</tt></dl>

<dl><dt><strong>newlines</strong> = &lt;attribute 'newlines' of 'file' objects&gt;<dd><tt>end-of-line&nbsp;convention&nbsp;used&nbsp;in&nbsp;this&nbsp;<a href="__builtin__.html#file">file</a></tt></dl>

<dl><dt><strong>softspace</strong> = &lt;member 'softspace' of 'file' objects&gt;<dd><tt>flag&nbsp;indicating&nbsp;that&nbsp;a&nbsp;space&nbsp;needs&nbsp;to&nbsp;be&nbsp;printed;&nbsp;used&nbsp;by&nbsp;print</tt></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-ceil"><strong>ceil</strong></a>(...)</dt><dd><tt><a href="#-ceil">ceil</a>(x)<br>
&nbsp;<br>
Return&nbsp;the&nbsp;ceiling&nbsp;of&nbsp;x&nbsp;as&nbsp;a&nbsp;float.<br>
This&nbsp;is&nbsp;the&nbsp;smallest&nbsp;integral&nbsp;value&nbsp;&gt;=&nbsp;x.</tt></dd></dl>
 <dl><dt><a name="-connectToPixbuf"><strong>connectToPixbuf</strong></a>(pixbuf, cairo)</dt></dl>
 <dl><dt><a name="-getCairoPixbuf"><strong>getCairoPixbuf</strong></a>(width, height)</dt></dl>
 <dl><dt><a name="-paintGraph"><strong>paintGraph</strong></a>(cairo, win, draw, loss, rect)</dt></dl>
 <dl><dt><a name="-pathBlock"><strong>pathBlock</strong></a>(cairo, x, y, w, h)</dt></dl>
 <dl><dt><a name="-surfaceToPixbuf"><strong>surfaceToPixbuf</strong></a>(surface)</dt></dl>
 <dl><dt><a name="-surfaceToPixbuf2"><strong>surfaceToPixbuf2</strong></a>(surface)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>height</strong> = 23<br>
<strong>width</strong> = 80</td></tr></table>
</body></html>